package com.it.system.course_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.system.course_service.mapper.CourseOrientationMapper;
import com.it.system.course_service.service.CourseOrientationService;
import com.it.system.educommonapi.entity.CourseOrientation;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseOrientationServiceImpl extends ServiceImpl<CourseOrientationMapper, CourseOrientation> implements CourseOrientationService {
    @Override
    public List<CourseOrientation> getAllCourseOrientations() {
        return baseMapper.selectAllCourseOrientations();
    }

    @Override
    public List<CourseOrientation> getCourseOrientationsByParentId(long parentId) {
        return baseMapper.selectCourseOrientationsByParentId(parentId);
    }
} 